

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Become a Member</title>
    </head>
    <body>
        <div class="body">
            <h3>Become A Member</h3>
            <p>You're just a few clicks and keystrokes away from creating a personal profile; connecting with fellow members and wedding experts; and building your own personal gallery of exciting content.</p>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${user}">
            <div class="errors">
                <g:renderErrors bean="${user}" as="list" />
            </div>
            </g:hasErrors>
            <g:form controller="user" action="create" method="post" >
                <fieldset>
                    <legend>Enter Your Details</legend>
                <div class="dialog">
                    <table>
                        <tbody>

                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="form_email">Email:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:user,field:'email','errors')}">
                                    <input type="text" maxlength="50" id="form_email" name="email" value="${fieldValue(bean:user,field:'email')}"/>
                                </td>
                            </tr>

                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="form_password">Password:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:user,field:'password','errors')}">
                                    <input type="password" maxlength="12" id="form_password" name="password" value="${fieldValue(bean:user,field:'password')}"/>
                                </td>
                            </tr>

                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="form_firstName">First Name:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:user,field:'firstName','errors')}">
                                    <input type="text" maxlength="20" id="form_firstName" name="firstName" value="${fieldValue(bean:user,field:'firstName')}"/>
                                </td>
                            </tr>

                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="form_lastName">Last Name:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:user,field:'lastName','errors')}">
                                    <input type="text" maxlength="30" id="form_lastName" name="lastName" value="${fieldValue(bean:user,field:'lastName')}"/>
                                </td>
                            </tr>

                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><input class="save" type="submit" value="Sign Me Up!" /></span>
                </div>
                </fieldset>
            </g:form>
        </div>
    </body>
</html>
